[Unit]
Description=Datadog System Probe
Requires=sys-kernel-debug.mount
Before=datadog-agent.service
After=network.target sys-kernel-debug.mount
BindsTo=datadog-agent.service
ConditionPathExists=<%= etc_dir %>/system-probe.yaml

[Service]
Type=simple
PIDFile=<%= install_dir %>/run/system-probe.pid
Restart=on-failure
ExecStart=<%= install_dir %>/embedded/bin/system-probe --config=<%= etc_dir %>/system-probe.yaml --pid=<%= install_dir %>/run/system-probe.pid
# Since systemd 229, should be in [Unit] but in order to support systemd <229,
# it is also supported to have it here.
StartLimitInterval=10
StartLimitBurst=5

[Install]
WantedBy=multi-user.target
